<%@ page import="java.util.Enumeration" %><%--
  Created by IntelliJ IDEA.
  User: 云升之初
  Date: 2024/9/18
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>使用request内置对象</title>
</head>
<body bgcolor="#ccfffcc">
    <h1>您刚才输入的内容是:</h1>
    <%
        // 获取到提交的所有属性名
        Enumeration enu = request.getHeaderNames();
        // 循环查看每个属性信息
        while (enu.hasMoreElements()){
            String paramterName = (String) enu.nextElement();
            String paramterValue = request.getParameter(paramterName);
            out.print("参数名称:"+paramterName);
            out.print("参数内容:"+paramterValue);
        }
    %>
</body>
</html>
